package com.onetech.adrewards.free.fragments.getpoints;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.onetech.adrewards.free.R;
import com.onetech.adrewards.free.fragments.BaseAdRewardFragment2;
import com.onetech.adrewards.free.objects.RequestParam2;

public class RegisterFreeFragment extends BaseAdRewardFragment2 {	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		if (mView == null) {
			mView = inflater.inflate(R.layout.fragment_list_adreward_layout,
					container, false);
			initView();
			initListener();
			setViewTracker(R.string.RegisterFreeFragment);
		} else {
			((ViewGroup) mView.getParent()).removeView(mView);
		}
		return mView;
	}
	public void initData(){
		super.initData();
		mName="RegisterFreeFragment";
		if(mParams==null){
			mParams=new RequestParam2();
		}
		//mParams.setAttribute("7");	//action_cate_id=9 & charge_type=2
		mParams.setAttribute("3");
		typeCate="registerfree";
		//isTesting=true;
		createURL2();
	}
	@Override
	public void onLoadMore() {
		super.onLoadMore();
	}

	@Override
	public void onClick(View v) {		
		super.onClick(v);
	}

	@Override
	public void onResume() {
		super.onResume();
		//initData();
		//getListAdReward();
	}	
}
